package org.scboy.coobi.db.mapping.mysql;

import org.scboy.coobi.db.mapping.DataTypeMapping;

/**
 * mysql数据类型映射
 * 
 * @author 四川耗子
 * @email 125167488@qq.com
 * @date 2017年6月19日
 */
public class MySqlDataTypeMapping implements DataTypeMapping {

	
	@Override
	public String NCHAR() {
		return "CHAR";
	}

	
	@Override
	public String NVARCHAR() {
		return "VARCHAR";
	}

	@Override
	public String TINYINT() {
		return "TINYINT";
	}

	@Override
	public String SMALLINT() {
		return "SMALLINT";
	}

	@Override
	public String INT() {
		return "INT";
	}

	@Override
	public String LONG() {
		return "BIGINT";
	}

	@Override
	public String VARBINARY() {
		return "VARBINARY";
	}

	@Override
	public String BINARY() {
		return "BINARY";
	}

	@Override
	public String CHAR() {
		return "CHAR";
	}

	@Override
	public String VARCHAR() {
		return "VARCHAR";
	}

	@Override
	public String DECIMAL() {
		return "DECIMAL";
	}

	@Override
	public String FLOAT() {
		return "FLOAT";
	}

	@Override
	public String DOUBLE() {
		return "DOUBLE";
	}

	@Override
	public String BOOLEAN() {
		return "TINYINT(1)";
	}

	@Override
	public String DATE() {
		return "DATE";
	}

	@Override
	public String TIME() {
		return "TIME";
	}

	@Override
	public String DATETIME() {
		return "DATETIME";
	}

	@Override
	public String BLOB() {
		return "LONGBLOB";
	}

	@Override
	public String TEXT() {
		return "LONGTEXT";
	}

	@Override
	public String NTEXT() {
		return "LONGTEXT";
	}

}
